<html>
<head>
<title>random test</title>
<script type="text/javascript">
function cl( e){
	console.log(e);
}
function clj( e){
	console.log(JSON.stringify(e));
}
function json( e){
	return JSON.stringify(e);
}

function whitelist( obj, list){
	for( var property in obj){
		if( list[property]=== true){
			continue;
		} else if( list[property]=== undefined || list[property].test === undefined || !list[property].test( obj[property])){
			return false;
		} 
	}
	return true;
}

var list = {
	prop0: true,
	prop1: /:\)/
};

var obj = {
	prop0 : 42,
	prop1 : "ok:)"
};

var obj2 = {
	prop0 : 42,
	prop1 : "NOTOK"
};





</script>
</head>
<body>


</body>
</html>